home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / NET / IRDA / IRTTY.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  2KB  |  71 lines

  1. /*********************************************************************
  2.  *                
  3.  * Filename:      irtty.h
  4.  * Version:       1.0
  5.  * Description:   
  6.  * Status:        Experimental.
  7.  * Author:        Dag Brattli <dagb@cs.uit.no>
  8.  * Created at:    Tue Dec  9 21:13:12 1997
  9.  * Modified at:   Sun Feb  7 01:57:33 1999
  10.  * Modified by:   Dag Brattli <dagb@cs.uit.no>
  11.  *  
  12.  *     Copyright (c) 1997 Dag Brattli, All Rights Reserved.
  13.  *      
  14.  *     This program is free software; you can redistribute it and/or 
  15.  *     modify it under the terms of the GNU General Public License as 
  16.  *     published by the Free Software Foundation; either version 2 of 
  17.  *     the License, or (at your option) any later version.
  18.  *  
  19.  *     Neither Dag Brattli nor University of Troms° admit liability nor
  20.  *     provide warranty for any of this software. This material is 
  21.  *     provided "AS-IS" and at no charge.
  22.  *     
  23.  ********************************************************************/
  24.  
  25. #ifndef IRTTY_H
  26. #define IRTTY_H
  27.  
  28. #include <linux/if.h>
  29. #include <linux/skbuff.h>
  30. #include <linux/termios.h>
  31.  
  32. #include <net/irda/irda.h>
  33. #include <net/irda/irqueue.h>
  34. #include <net/irda/irda_device.h>
  35.  
  36. #include <net/irda/dongle.h>
  37.  
  38. #define IRTTY_IOC_MAGIC 'e'
  39. #define IRTTY_IOCTDONGLE  _IO(IRTTY_IOC_MAGIC, 1)
  40. #define IRTTY_IOC_MAXNR   1
  41.  
  42. #ifndef N_IRDA
  43. #define N_IRDA         11   /* This one should go in </asm/termio.h> */
  44. #endif
  45.  
  46. struct dongle_q {
  47.     QUEUE q;
  48.  
  49.     struct dongle *dongle;
  50. };
  51.  
  52. struct irtty_cb {
  53.     QUEUE q; /* Must be first */
  54.  
  55. /*     char name[16]; */
  56.  
  57.     int    magic;
  58.     
  59.     struct  tty_struct  *tty;  /* Ptr to TTY structure */
  60.     struct  irda_device idev;
  61.  
  62.     struct dongle_q *dongle_q; /* Has this tty got a dongle attached? */
  63. };
  64.  
  65. int irtty_register_dongle( struct dongle *dongle);
  66. void irtty_unregister_dongle( struct dongle *dongle);
  67.  
  68. void irtty_set_dtr_rts(struct tty_struct *tty, int dtr, int rts);
  69.  
  70. #endif
  71.